package chp07.homework;

public class Home2 {
    public static void main(String[] args) {
        int[] points = {18,25,7,36,13,2,89,63};
        int min = points[0];
        int minIndex = 0;
        for (int i = 0; i < points.length; i++) {
            if(points[i] < min){
                min = points[i];
                minIndex = i;
            }
        }
        System.out.println("最小值:" + min);
        System.out.println("对应的坐标:" + minIndex);
    }
}
